<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateConfigLevelTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('config_level', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->tinyInteger('level')->default(0);
            $table->string('level_note',50)->default('');
            $table->integer('capacity')->default(0)->comment('算力容量');
            $table->integer('calculate')->default(0)->comment('收益百分之');
            $table->engine = 'InnoDB';
            $table->charset = 'utf8';
            $table->collation = 'utf8_unicode_ci';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('config_level');
    }
}
